(function ($) { "use strict";

    var Jump = function (element) {
        this.$element = $(element);
        this.options  = $.extend({}, Jump.DEFAULTS);
    }

    Jump.DEFAULTS = {}

    Jump.prototype.init = function () {
        this.$element.on('change', function(e){
            location.href = this.value;
        });
    };

    var old = $.fn.Jump;

    $.fn.Jump = function (option) {
        return this.each(function () {
            var c = new Jump(this);
            c.init();
        })
    }

    $.fn.Jump.Constructor = Jump;

    $.fn.Jump.noConflict = function () {
        $.fn.Jump = old
        return this
    }

    $(document).ready(function(){
        $('select[data-toggle="jump"]', document).Jump();
    });

})(window.jQuery);